package com.whfp.coky.db.dbflow;

import com.raizlabs.android.dbflow.annotation.Migration;
import com.raizlabs.android.dbflow.sql.SQLiteType;
import com.raizlabs.android.dbflow.sql.migration.AlterTableMigration;
import com.whfp.coky.db.dao.TestingRecordingDao;

/**
 * 在数据库版本2的时候增加破冰2MAC地址的字段
 */
@Migration(version = 2, database = AppDatabase.class)
public class TestingRecordingMigration_V2 extends AlterTableMigration<TestingRecordingDao> {
    public TestingRecordingMigration_V2(Class<TestingRecordingDao> table) {
        super(table);
    }

    @Override
    public void onPreMigrate() {
        //增加破冰2MAC地址的字段
        addColumn(SQLiteType.TEXT, "pb2Mac");
    }
}
